<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>

	</head>
	<body>

		<script type="text/javascript">
			 function sendMessage(type, data) {
			    const params = {};
			    params.type = type;
			    params.data = data;
			    params.resource = 'csbridge';
			    params.iframeKey = '<?php echo $iframeKey;?>'; // 从url参数获取，示例假设值为1
			    window.parent.postMessage(JSON.stringify(params), '*');
			  }
              sendMessage('updateUserInfo', {"userId" : "<?php echo $userId;?>", "userName" : "<?php echo $uname;?>"});
		</script>
	</body>
</html>